package com.jash.lifxdemo.utils;


import com.jash.lifxdemo.entities.ContentEntity;
import com.jash.lifxdemo.entities.ContentListEntity;
import com.jash.lifxdemo.entities.Entity;
import com.jash.lifxdemo.entities.MatchEntity;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

public interface NetService {
    @GET("tiyu/rest/content/list")
    Call<Entity<ContentListEntity>> getContentList(@Query("channel_id") long channel_id, @Query("contest_flag") boolean contest_flag, @Query("banner_flag") boolean banner_flag, @QueryMap Map<String, String> map);
    @GET("tiyu/rest/content/view")
    Call<Entity<ContentEntity>> getContent(@Query("id") long id);
    @GET("tiyu/rest/contest/time/channel")
    Call<Entity<MatchEntity>> getMatch(@Query("start_time") String start, @Query("end_time") String end);
}
